/*
 * @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @Date: 2023-06-08 16:26:33
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @LastEditTime: 2023-08-10 15:30:44
 * @FilePath: \ship-schedule-ui\src\common\api\modules\ship.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from "../api"

/**
 * @description A1:按船长分段统计过闸时间
 * @date 2023-07-06
 * @export
 * @param {*} params
 * @returns
 */
export function GetDurationByLength(params: any) {
  return request({
    url: "api/api/ShipInfo/GetDurationByLength",
    params,
    method: "get"
  })
}
/**
 * @description A2:按船宽分段统计过闸时间
 * @date 2023-07-06
 * @export
 * @param {*} params
 * @returns
 */
export function GetDurationByWidth(params: any) {
  return request({
    url: "api/api/ShipInfo/GetDurationByWidth",
    params,
    method: "get"
  })
}
/**
 * @description A3:按吨位分段统计过闸时间
 * @date 2023-07-06
 * @export
 * @param {*} params
 * @returns
 */
export function GetDurationByWeight(params: any) {
  return request({
    url: "api/api/ShipInfo/GetDurationByWeight",
    params,
    method: "get"
  })
}
/**
 * @description A4：按过闸时长分段统计区间内的不同吨位船舶数量
 * @date 2023-08-09
 * @export
 * @param {*} params
 * @returns
 */
export function GetRankedDurationByWeight(params: any) {
  return request({
    url: "api/api/ShipInfo/GetRankedDurationByWeight",
    params,
    method: "get"
  })
}
/**
 * @description A5：多线船闸分别统计过闸船舶数量和平均过闸时间
 * @date 2023-07-06
 * @export
 * @param {*} params
 * @returns
 */
export function GetDurationByLine(params: any) {
  return request({
    url: "api/api/ShipInfo/GetDurationByLine",
    params,
    method: "get"
  })
}

/**
 * @description A6:统计单组过闸的船舶数量和载货量的过闸时间
 * @date 2023-07-06
 * @export
 * @param {*} params
 * @returns
 */
export function GetDurationBySumLoad(params: any) {
  return request({
    url: "api/api/ShipInfo/GetDurationBySumLoad",
    params,
    method: "get"
  })
}
/**
 * @description A7：载货种类统计，统计要素包括船舶数量、载货量
 * @date 2023-07-06
 * @export
 * @param {*} params
 * @returns
 */
export function GetDurationByGoods(params: any) {
  return request({
    url: "api/api/ShipInfo/GetDurationByGoods",
    params,
    method: "get"
  })
}

